import { useEffect, useRef } from "react"

export default function useMount(fn) {
  const _fn = useRef(fn)
  useEffect(() => {
    _fn.current()
  }, [])
}
